<tr>
      <td><a title="点击修改此条信息" href="/assetdetails/{{ obj.id }}"> {{ obj.itno }}</a></td>
      <td>{{ obj.user }}</td>
      <td> {{ obj.chang }}</td>

      <td> {{ obj.start_time }}</td>
      <td> {% if not obj.yend_time  %}{{ "" }}{% else %}{{ obj.yend_time }}{% endif %}</td>
      <td> {% if not obj.send_time  %}{{ "" }}{% else %}{{ obj.send_time }}{% endif %}</td>
        <td>{{ obj.recordtype }}</td>
  <td>{% if obj.secordtatus %}{{ obj.secordtatus }}{% else%}{{ '' }}{% endif %}</td>

      <td>
<a title="修改" href="/userecord/{{ obj.id }}"><i class="fa fa-pencil"></i></a>&nbsp;&nbsp;
<a title="删除" href="#delModal{{ obj.id }}" role="button" data-toggle="modal"><i class="fa fa-trash-o"></i></a>


    <div class="modal small fade" id="delModal{{ obj.id }}" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">

<form id="delmodelform{{ obj.id }}" method="post" action="/deluserecord/{{ obj.id }}/" >
 {% csrf_token %}
  <div class="modal-dialog">

    <div class="modal-content">
        <div class="modal-header">
            <button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button>
            <a style="color:red;font-size: x-large">删除资产</a>
        </div>

        <div class="modal-body">
            <p class="error-text"><i class="fa fa-warning modal-icon"></i>您确定要删除资产  <a style="color: red">{{ obj.itno }}</a>记录<br>如要恢复请登录管理员后台操作</p>
        </div>

        <div class="modal-footer">
            <button  class="btn btn-danger" data-dismiss="modal" onclick="submitForm('{{ obj.id }}');">Delete</button>
            <button class="btn btn-default" data-dismiss="modal" aria-hidden="true">Cancel</button>

        </div>
      </div>
    </div>
</form>
</div>


      </td>
    </tr>